#ifndef SECUREC_H
#define SECUREC_H

#ifdef __cplusplus
extern "C" {
#endif

#define EOK 0
#ifndef errno_t
typedef int errno_t;
#endif

#define memset_s(dest, destMax, val, count) memset(dest, val, count)
//#define memcpy_s(dest, destMax, src, count) memcpy(dest, src, count)
#define vsnprintf_s(strDest, destMax, count, format, argList) vsnprintf(strDest, count, format, argList)
//#define strncpy_s(strDest, destMax, strSrc, count) strncpy(strDest, strSrc, count)
errno_t strncpy_s(char *strDest, size_t destMax, const char *strSrc, size_t count);

errno_t memcpy_s(void *dest, size_t destMax, const void *src, size_t count);

#ifdef __cplusplus
}
#endif

#endif /* SECUREC_H */
